{if isset($menu)}
<ul class="expandingMenu">
{foreach from=$menu key=controller item=actions}
    <li>
        <label {if $menu_selected_ctrl == $controller}class="selected"{/if}>{t lang=$language}TXT_CMS_{$controller}{/t}</label>
        {if isset($actions)}
            <ul>
                {foreach from=$actions key=text item=action}
                    <li><a href="/{$baseDir}/{$language}/{$controller}/{$action}/" title="{t lang=$language}TXT_CMS_{$controller}_{$text}{/t}"{if $menu_selected_ctrl == $controller && $menu_selected_action ==$action} class="selected"{/if}>{t lang=$language}TXT_CMS_{$controller}_{$text}{/t}</a></li>
                {/foreach}
            </ul>
        {/if}
    </li>
{/foreach}
</ul>
{/if}
